export default class ProductItem {
    public name: string; // 名称
    public price: number; // 价格
    public imgSrc: string; // 产品的图片 url

    constructor(name: string, price: number, imgSrc: string) {
        this.name = name;
        this.price = price;
        this.imgSrc = imgSrc;
    }
}